package com.javalei.dao;


import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class testdao {

    ApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
    @Test
    public void  test(){
        UserMapper user=ctx.getBean(UserMapper.class);
    }
}
